<!DOCTYPE html>
<html lang='en'><meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Hexo-常用操作 | 龙渊阁</title>







<link rel="stylesheet" href="https://dgvy.gitee.io/css/eureka.min.css">




<script defer src="https://dgvy.gitee.io/js/eureka.min.js"></script>


<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload"
    href="https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap"
    as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="preload" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.1.0/build/styles/solarized-light.min.css" as="style"
    onload="this.onload=null;this.rel='stylesheet'">
<script defer src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.1.0/build/highlight.min.js"></script>
<script async src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.14.0/js/all.min.js" integrity="sha256-uNYoXefWRqv&#43;PsIF/OflNmwtKM4lStn9yrz2gVl6ymo="
    crossorigin="anonymous"></script>




<link rel="icon" type="image/png" sizes="32x32" href="https://dgvy.gitee.io/images/icon_hu64421c6c7700f606f0ad45d807017b09_5843_32x32_fill_box_center_2.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://dgvy.gitee.io/images/icon_hu64421c6c7700f606f0ad45d807017b09_5843_180x180_fill_box_center_2.png">




<meta name="description"
    content="预定义参数    参数 描述 默认值     layout 布局    title 标题    date 建立日期 文件建立日期   updated 更新日期 文件更新日期   comments 开启文章评论功能 true   tags 标签（不适用于分页）    categories 分类（不适用于分页）    permalink 覆盖文章网址     引用块 在文章中插入引言，可包含作者、来源和标题
{% blockquote [author[, source]] [link] [source_link_title] %}content{% endblockquote %} {% blockquote [佚名] [www.baidu.com] 《咏大海》%} 啊！ 大海！！ 全是水！！！ {% endblockquote %}">





<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [{
"@type": "ListItem",
"position":  1 ,
"name": "龙渊阁",
"item": "https://dgvy.gitee.io/"
},{
"@type": "ListItem",
"position":  2 ,
"name": "Posts",
"item": "https://dgvy.gitee.io/posts/"
},{
"@type": "ListItem",
"position":  3 ,
"name": "Hexo-常用操作",
"item": "https://dgvy.gitee.io/posts/2017-10-27-hexo-%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/"
}]
}
</script>



<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "Article",
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://dgvy.gitee.io/posts/2017-10-27-hexo-%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/"
    },
    "headline": "Hexo-常用操作 | 龙渊阁","datePublished": "2017-10-27T23:55:27+00:00",
    "dateModified": "2017-10-27T23:55:27+00:00",
    "wordCount":  393 ,
    "publisher": {
        "@type": "Person",
        "name": "Example publisher",
        "logo": {
            "@type": "ImageObject",
            "url": "https://dgvy.gitee.io/images/icon.png"
        }
        },
    "description": "预定义参数    参数 描述 默认值     layout 布局    title 标题    date 建立日期 文件建立日期   updated 更新日期 文件更新日期   comments 开启文章评论功能 true   tags 标签（不适用于分页）    categories 分类（不适用于分页）    permalink 覆盖文章网址     引用块 在文章中插入引言，可包含作者、来源和标题\n{% blockquote [author[, source]] [link] [source_link_title] %}\rcontent\r{% endblockquote %}\r {% blockquote [佚名] [www.baidu.com] 《咏大海》%} 啊！ 大海！！ 全是水！！！ {% endblockquote %}"
}
</script>

<meta property="og:title" content="Hexo-常用操作 | 龙渊阁" />
<meta property="og:type" content="article" />


<meta property="og:image" content="https://dgvy.gitee.io/images/icon.png">


<meta property="og:url" content="https://dgvy.gitee.io/posts/2017-10-27-hexo-%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/" />




<meta property="og:description" content="预定义参数    参数 描述 默认值     layout 布局    title 标题    date 建立日期 文件建立日期   updated 更新日期 文件更新日期   comments 开启文章评论功能 true   tags 标签（不适用于分页）    categories 分类（不适用于分页）    permalink 覆盖文章网址     引用块 在文章中插入引言，可包含作者、来源和标题
{% blockquote [author[, source]] [link] [source_link_title] %}content{% endblockquote %} {% blockquote [佚名] [www.baidu.com] 《咏大海》%} 啊！ 大海！！ 全是水！！！ {% endblockquote %}" />




<meta property="og:locale" content="en" />




<meta property="og:site_name" content="龙渊阁" />






<meta property="article:published_time" content="2017-10-27T23:55:27&#43;00:00" />


<meta property="article:modified_time" content="2017-10-27T23:55:27&#43;00:00" />



<meta property="article:section" content="posts" />


<meta property="article:tag" content="Hexo" />

<meta property="article:tag" content="前端" />

<meta property="article:tag" content="博客" />





<meta property="og:see_also" content="https://dgvy.gitee.io/posts/2017-10-26-hexo-%E5%A4%9A%E7%BB%88%E7%AB%AF%E5%90%8C%E6%AD%A5%E7%AE%A1%E7%90%86/" />


<body class="flex flex-col min-h-screen">
    <header class="flex items-center fixed w-full min-h-16 z-50 bg-secondary-bg shadow-sm">
        <div class="container mx-auto">
            <div class="max-w-screen-xl"><script>
    let storageColorScheme = localStorage.getItem("lightDarkMode")
    if (((storageColorScheme == 'Auto' || storageColorScheme == null) && window.matchMedia("(prefers-color-scheme: dark)").matches)
        || storageColorScheme == "Dark") {
        document.getElementsByTagName('html')[0].classList.add('dark')
    } else if (storageColorScheme == "Light") {
        document.getElementsByTagName('html')[0].classList.remove('dark')
    }
</script>
<nav class="flex items-center justify-between flex-wrap p-4">
    <a href="/" class="mr-6 text-primary-text text-xl font-bold">龙渊阁</a>
    <button id="navbar-btn" class="md:hidden flex items-center px-3 py-2" aria-label="Open Navbar">
        <i class="fas fa-bars"></i>
    </button>

    <div id="target"
        class="hidden block md:flex md:flex-grow md:justify-between md:items-center w-full md:w-auto text-primary-text z-20">
        <div class="text-sm md:flex-grow pb-4 md:pb-0 border-b md:border-b-0" id="current-url"
            currenturl="https://dgvy.gitee.io/posts/2017-10-27-hexo-%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/">
            
            <a href="/about/"
                class="block mt-4 md:inline-block md:mt-0 hover:text-eureka mr-4 main-a">About</a>
            
            <a href="/posts/"
                class="block mt-4 md:inline-block md:mt-0 hover:text-eureka mr-4 main-a">Posts</a>
            
            <a href="/docs/"
                class="block mt-4 md:inline-block md:mt-0 hover:text-eureka mr-4 main-a">Docs</a>
            
        </div>

        <div class="flex">
            <div class="relative pt-4 md:pt-0">
                <div class="cursor-pointer hover:text-eureka" id="lightDarkMode">
                    <i class="fas fa-adjust"></i>
                </div>
                <div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-30" id="is-open">
                </div>
                <div class="absolute flex flex-col left-0 md:left-auto right-auto md:right-0 hidden bg-secondary-bg w-48 rounded py-2 border border-tertiary-bg cursor-pointer z-40"
                    id='lightDarkOptions'>
                    <span class="px-4 py-1 hover:text-eureka">Light</span>
                    <span class="px-4 py-1 hover:text-eureka">Dark</span>
                    <span class="px-4 py-1 hover:text-eureka">Auto</span>
                </div>
            </div>

            
        </div>
    </div>

    <div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-0" id="is-open-mobile">
    </div>

</nav>
<script>
    document.addEventListener('DOMContentLoaded', () => {
        getcolorscheme();
        switchBurger();
        
    });

    let currenturl = document.getElementById('current-url').getAttribute('currenturl')
        if (currenturl.length > 1) {
            currenturl = currenturl.substr(0, currenturl.length - 1)
        }

        sessionStorage.setItem("mainKey", currenturl)

        let elements = document.getElementsByClassName('main-a');
        for (let i in elements) {
            if (typeof elements[i] === "object") {
                let elementurl = elements[i].getAttribute('href')
                if (elementurl.length > 1 && elementurl.charAt(elementurl.length - 1) == '/') {
                    elementurl = elementurl.substr(0, elementurl.length - 1)
                }
                if (elementurl == sessionStorage.getItem("mainKey")) {
                    elements[i].classList.add('text-eureka')
                } else {
                    elements[i].classList.remove('text-eureka')
                }
            }
        }
</script></div>
        </div>
    </header>

    <main class="flex-grow pt-16">
        
        <div class="container mx-auto ">
            <div class="max-w-screen-xl lg:px-4 xl:px-8">


<div class="grid grid-cols-2 lg:grid-cols-8 gap-4 lg:pt-12">
    <div
        class="col-span-2 lg:col-start-2 lg:col-span-6 bg-secondary-bg rounded px-6 py-8">
        <h1 class="font-bold text-3xl text-primary-text">Hexo-常用操作</h1>
        <div class="flex flex-wrap flex-row items-center my-2 text-tertiary-text">
    <div class="mr-6 my-2">
        <i class="fas fa-calendar mr-1"></i>
        <span>2017-10-27</span>
    </div>
    <div class="mr-6 my-2">
        <i class="fas fa-clock mr-1"></i>
        <span>2 min read</span>
    </div>
    
    
    <div class="mr-6 my-2">
        <i class="fas fa-folder mr-1"></i>
        
        <a href="https://dgvy.gitee.io/categories/%E5%89%8D%E7%AB%AF/" class="hover:text-eureka">前端</a>
        
        
        <span>, </span>
        <a href="https://dgvy.gitee.io/categories/hexo/" class="hover:text-eureka">Hexo</a>
        
    </div>
    

    
</div>
        
        
        <div class="content">
            <h1 id="预定义参数">预定义参数</h1>
<table>
<thead>
<tr>
<th style="text-align:left">参数</th>
<th style="text-align:left">描述</th>
<th style="text-align:left">默认值</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left"><code>layout</code></td>
<td style="text-align:left">布局</td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left"><code>title</code></td>
<td style="text-align:left">标题</td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left"><code>date</code></td>
<td style="text-align:left">建立日期</td>
<td style="text-align:left">文件建立日期</td>
</tr>
<tr>
<td style="text-align:left"><code>updated</code></td>
<td style="text-align:left">更新日期</td>
<td style="text-align:left">文件更新日期</td>
</tr>
<tr>
<td style="text-align:left"><code>comments</code></td>
<td style="text-align:left">开启文章评论功能</td>
<td style="text-align:left">true</td>
</tr>
<tr>
<td style="text-align:left"><code>tags</code></td>
<td style="text-align:left">标签（不适用于分页）</td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left"><code>categories</code></td>
<td style="text-align:left">分类（不适用于分页）</td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left"><code>permalink</code></td>
<td style="text-align:left">覆盖文章网址</td>
<td style="text-align:left">　</td>
</tr>
</tbody>
</table>
<h1 id="引用块">引用块</h1>
<p><strong>在文章中插入引言，可包含作者、来源和标题</strong></p>
<pre><code>{% blockquote [author[, source]] [link] [source_link_title] %}
content
{% endblockquote %}
</code></pre>
<p>{% blockquote [佚名] [www.baidu.com] 《咏大海》%}
啊！
大海！！
全是水！！！
{% endblockquote %}</p>
<p><strong>没有提供参数，则只输出普通的 blockquote</strong></p>
<pre><code>{% blockquote %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit lacus ut purus iaculis feugiat. Sed nec tempor elit, quis aliquam neque. Curabitur sed diam eget dolor fermentum semper at eu lorem.
{% endblockquote %}
</code></pre>
<p>{% blockquote %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque hendrerit lacus ut purus iaculis feugiat. Sed nec tempor elit, quis aliquam neque. Curabitur sed diam eget dolor fermentum semper at eu lorem.
{% endblockquote %}</p>
<p><strong>引用书上的句子</strong></p>
<pre><code>{% blockquote David Levithan, Wide Awake %}
Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.
{% endblockquote %}
</code></pre>
<p>{% blockquote David Levithan, Wide Awake %}
Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.
{% endblockquote %}</p>
<p><strong>引用 Twitter</strong></p>
<pre><code>{% blockquote @DevDocs https://twitter.com/devdocs/status/356095192085962752 %}
NEW: DevDocs now comes with syntax highlighting. http://devdocs.io
{% endblockquote %}
</code></pre>
<p>{% blockquote @DevDocs <a href="https://twitter.com/devdocs/status/356095192085962752">https://twitter.com/devdocs/status/356095192085962752</a> %}
NEW: DevDocs now comes with syntax highlighting. <a href="http://devdocs.io">http://devdocs.io</a>
{% endblockquote %}</p>
<p><strong>引用网络上的文章</strong></p>
<pre><code>{% blockquote Seth Godin http://sethgodin.typepad.com/seths_blog/2009/07/welcome-to-island-marketing.html Welcome to Island Marketing %}
Every interaction is both precious and an opportunity to delight.
{% endblockquote %}
</code></pre>
<p>{% blockquote Seth Godin <a href="http://sethgodin.typepad.com/seths_blog/2009/07/welcome-to-island-marketing.html">http://sethgodin.typepad.com/seths_blog/2009/07/welcome-to-island-marketing.html</a> Welcome to Island Marketing %}
Every interaction is both precious and an opportunity to delight.
{% endblockquote %}</p>
<h1 id="代码块">代码块</h1>
<p><strong>在文章中插入代码</strong></p>
<pre><code>{% codeblock [title] [lang:language] [url] [link text] %}
code snippet
{% endcodeblock %}
</code></pre>
<p>{% codeblock [title] [lang:language] [url] [link text] %}
code snippet
{% endcodeblock %}</p>
<p><strong>普通的代码块</strong></p>
<pre><code>{% codeblock %}
alert('Hello World!');
{% endcodeblock %}
</code></pre>
<p>{% codeblock %}
alert(&lsquo;Hello World!');
{% endcodeblock %}</p>
<p><strong>指定语言</strong></p>
<pre><code>{% codeblock lang:objc %}
[rectangle setX: 10 y: 10 width: 20 height: 20];
{% endcodeblock %}
</code></pre>
<p>{% codeblock lang:objc %}
[rectangle setX: 10 y: 10 width: 20 height: 20];
{% endcodeblock %}</p>
<p><strong>附加说明</strong></p>
<pre><code>{% codeblock Array.map %}
array.map(callback[, thisArg])
{% endcodeblock %}
</code></pre>
<p>{% codeblock Array.map %}
array.map(callback[, thisArg])
{% endcodeblock %}</p>
<p><strong>附加说明和网址</strong></p>
<pre><code>{% codeblock _.compact http://underscorejs.org/#compact Underscore.js %}
_.compact([0, 1, false, 2, '', 3]);
=&gt; [1, 2, 3]
{% endcodeblock %}
</code></pre>
<p>{% codeblock _.compact <a href="http://underscorejs.org/#compact">http://underscorejs.org/#compact</a> Underscore.js %}
_.compact([0, 1, false, 2, &lsquo;&rsquo;, 3]);
=&gt; [1, 2, 3]
{% endcodeblock %}</p>

        </div>
        
        <div class="my-4">
    
    <a href="https://dgvy.gitee.io/tags/hexo/" class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 mr-2 hover:text-eureka">#Hexo</a>
    
    <a href="https://dgvy.gitee.io/tags/%E5%89%8D%E7%AB%AF/" class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 mr-2 hover:text-eureka">#前端</a>
    
    <a href="https://dgvy.gitee.io/tags/%E5%8D%9A%E5%AE%A2/" class="inline-block bg-tertiary-bg text-sm rounded px-3 py-1 my-1 mr-2 hover:text-eureka">#博客</a>
    
</div>
        
        
        
        
        
        
        
<div class="flex flex-col md:flex-row md:justify-between -mx-2 mt-4 px-2 pt-4 border-t">
    <div>
        
        <span class="block font-bold">Previous</span>
        <a href="https://dgvy.gitee.io/posts/2017-10-29-matlab2017a%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/" class="block">MatlabR2017a下载安装教程</a>
        
    </div>
    <div class="md:text-right mt-4 md:mt-0">
        
        <span class="block font-bold">Next</span>
        <a href="https://dgvy.gitee.io/posts/2017-10-27-nsis-%E8%B0%83%E8%AF%95%E6%8A%80%E5%B7%A7/" class="block">NSIS-调试技巧</a>
        
    </div>
</div>

        
    </div>
    

    
    
    <div
        class="col-span-2 lg:col-start-2 lg:col-span-6 bg-secondary-bg rounded p-6">
        <h2 class="text-lg font-semibold mb-4">See Also</h2>
        <div class="content">
            
            <a href="https://dgvy.gitee.io/posts/2017-10-26-hexo-%E5%A4%9A%E7%BB%88%E7%AB%AF%E5%90%8C%E6%AD%A5%E7%AE%A1%E7%90%86/">Hexo-多终端同步管理</a>
            <br />
            
        </div>
    </div>
    
</div>
<script>
    document.addEventListener('DOMContentLoaded', ()=>{
        hljs.initHighlightingOnLoad();
    })
</script>

            </div>
        </div>
        
    </main>

    <footer>
        <div class="container mx-auto">
            <div class="max-w-screen-xl"><footer class="w-full text-center p-6 pin-b text-sm text-tertiary-text">
    <p>&copy; 2020 <a href="https://www.wangchucheng.com/">C. Wang</a> and <a href="https://www.ruiqima.com/">R. Ma</a> &middot;  Powered by the <a href="https://github.com/wangchucheng/hugo-eureka" class="hover:text-eureka">Eureka</a> theme for <a href="https://gohugo.io" class="hover:text-eureka">Hugo</a></p>
</footer></div>
        </div>
    </footer>
</body>

</html>